<template>
	<!-- 提醒登录按钮 -->
	<div class="sub">
		<header class="subscriber">我的订阅</header>
		<template v-if="user">
			<ul v-if="false"></ul>
			<p class="none">您暂无订阅频道，快去发现看看吧～</p>
		</template>
		<template v-else>
			<p class="hint">登录查看订阅信息哦～</p>
			<router-link to="/login" class="btn">登录</router-link>
		</template>
	</div>
</template>

<script>
export default{
	computed:{
		subscriber(){
			return this.$store.state.users.subscriber;
		},
		user(){
			return this.$store.state.users.user;
		}
	}
}
</script>

<style lang="less" scoped>
.sub{
	padding: 10px 0;
	border-top: 1px solid #e7e7e7;
	box-sizing: border-box;
	.subscriber{
		height: 44px;
		line-height: 47px;
		padding: 0 20px;
		font-size: 16px;
	}
	.none{
		display: flex;
		justify-content: center;
		margin: 50px auto;
		font-size: 12px;
		color: #999;
	}
	.hint{
		margin-bottom: 10px;
		text-align: center;
		font-size: 14px;
		color: var(--c9);
	}
	.btn{
		display: block;
		width: 100px;
		height: 32px;
		line-height: 32px;
		margin: 0 auto;
		margin-bottom: 10px;
		text-align: center;
		font-size: 14px;
		color: #fff;
		background-color: #00a1d6;
		border-radius: 2px;
	}
}
</style>
